#ifndef CITEM_H
#define CITEM_H

#include "Common.h"

class CSnake;

class CItem {
protected:
	ItemType itemType;

	static bool comparePositions(const Position& p1, const Position& p2) {
		return p1.x == p2.x && p1.y == p2.y;
	}


public:
	virtual Position getPosition() const = 0;
	virtual void OnEat(CSnake& snake) = 0;

	ItemType getType()const;
	
};



#endif // CITEM_H
